package org.lds.message.center.admin.business.channel.converter;

import org.lds.message.center.admin.business.channel.entity.Channel;
import org.lds.message.center.admin.business.channel.model.request.ChannelBaseDeleteRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class ChannelBaseDeleteRequestToEntityConverter implements Converter<ChannelBaseDeleteRequest, Channel> {

    @Override
    public Channel convert(ChannelBaseDeleteRequest source) {
        return Channel.builder()
                .id(source.getId())
                .build();
    }

}


